<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="imagetoolbar" content="false">
<meta http-equiv="imagetoolbar" content="no">
<script type="text/javascript" src="uploader.js"></script>
<script type="text/javascript">
window.addEventListener("load", function() {

    // handle image preview
    var input      = document.getElementById("upload");

    // handle file upload
    var form      = document.getElementsByTagName("form")[0];
    var uploader  = new Uploader(form);
    var uploadBtn = document.getElementById("btnUpload");
    uploadBtn.addEventListener("click", function() {
        uploader.send();
    }, false);

}, false);
</script>
</head>
<body>

<form action="http://10.35.14.49:8080/NDA_Web/rest/fileUpload" method="post"
      enctype="multipart/form-data" onsubmit="return false;">
    <fieldset>
        <legend>Upload photo</legend>       
        <input type="text" name="type" id="type"> |       
        <select name="priority" id="priority">
            <option>1</option>
            <option>2</option>
            <option>3</option>
        </select> |
        <input type="file" name="upload" id="upload">
        <input type="submit" value="Upload" id="btnUpload">
    </fieldset>
</form>

</body>
</html>
